package cn.cleanarch.infra.idp.uaa.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.cleanarch.infra.idp.database.entity.DBModel;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@ToString
@EqualsAndHashCode(callSuper = true)
@TableName("t_role")
public class Role extends DBModel {

  public static final String ROLE_CODE_SUPER = "SUPER_ADMIN"; // 超级管理员角色Code
  public static final long ROLE_ID_SUPER = 1; // 超级管理员角色

  @Length(max = 50)
  private String code;

  @Length(max = 50)
  private String name;

  private Boolean enable;

}
